package 作业;

public class DemoPhone {
    public static void main(String[] args) {
        Phone p = new Phone();
        p.setBand("华为");
        p.setModel("Mate40 Pro");
        p.setPrice(899);
        System.out.println(p.getBand() + p.getModel() + "  " + p.getPrice());

        Phone p2 = new Phone("苹果", "Iphone 12 ProMax", 9999);
        System.out.println(p2.getBand() + p2.getModel() + "  " + p2.getPrice());

    }
}
